package fr.mairie.parc.service.impl;

import java.util.List;

import fr.mairie.parc.dao.UserDao;
import fr.mairie.parc.domain.User;
import fr.mairie.parc.service.UserManager;

public class UserManagerImpl implements UserManager{

	private UserDao userDao;

	public UserDao getUserDao(){
		return userDao;
	}

	public void setUserDao(UserDao userDao){
		this.userDao = userDao;
	}

	@Override
	public List<User> selectAll() {
		return userDao.selectAll();
	}

	@Override
	public void addUser(User user) {
		userDao.addUser(user);
	}

	@Override
	public User getUserById(int id) {
		return userDao.getUserById(id);
	}

	@Override
	public void updateUser(User user) {
		userDao.updateUser(user);

	}

	@Override
	public void deleteUser(User user) {
		userDao.deleteUser(user);

	}

	@Override
	public List<String> selectDirection() {
		return userDao.selectDirection();
	}

	@Override
	public List<String> selectService() {
		return userDao.selectService();
	}

	@Override
	public List<String> selectBatiment() {
		return userDao.selectBatiment();
	}

	@Override
	public List<User> getUserbyName(String name) {
		return userDao.getUserbyName(name);
	}

	@Override
	public User getUserById(String id) {
		return userDao.getUserById(id);
	}

}
